﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.IO;
using AutoUpdaterDotNET;
using ResourceDll;

namespace BackupRestoreApplication
{
    public partial class frmMain : Form
    {
        public static string path1 = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles).ToString();
        public static string path2 = Path.GetPathRoot(Environment.SystemDirectory).ToString() + "Program Files";
        public frmMain()
        {
            InitializeComponent();
            this.btMoreEmail.Enabled = false;
        }

        #region Internet Browers
        private void btChrome_Click(object sender, EventArgs e)
        {
            Internet.frmChrome frm = new Internet.frmChrome();
            frm.ShowDialog();
        }

        private void btFirefox_Click(object sender, EventArgs e)
        {
            Internet.frmFirefox frm = new Internet.frmFirefox();
            frm.ShowDialog();
        }

        private void btOpera_Click(object sender, EventArgs e)
        {
            Internet.frmOpera frm = new Internet.frmOpera();
            frm.ShowDialog();
        }

        private void btCorom_Click(object sender, EventArgs e)
        {
            Internet.frmCorom frm = new Internet.frmCorom();
            frm.ShowDialog();
        }

        private void btutorrent_Click(object sender, EventArgs e)
        {
            Internet.frmuTorrent frm = new Internet.frmuTorrent();
            frm.ShowDialog();
        }

        #endregion

        #region Designer Group
        private void btPhotoshop_Click(object sender, EventArgs e)
        {
            Designer.frmPhotoshop frm = new Designer.frmPhotoshop();
            frm.ShowDialog();
        }

        private void btCorel_Click(object sender, EventArgs e)
        {
            Designer.frmCorel frm = new Designer.frmCorel();
            frm.ShowDialog();
        }

        private void btNeat_Click(object sender, EventArgs e)
        {
            Designer.frmNeatImages frm = new Designer.frmNeatImages();
            frm.ShowDialog();
        }

        #endregion

        #region Developed
        private void btNotepad_Click(object sender, EventArgs e)
        {
            Develop.frmNotepad frm = new Develop.frmNotepad();
            frm.ShowDialog();
        }

        private void btEvernote_Click(object sender, EventArgs e)
        {
            Develop.frmEvernote frm = new Develop.frmEvernote();
            frm.ShowDialog();
        }

        private void btAsc_Click(object sender, EventArgs e)
        {
            Develop.frmASC frm = new Develop.frmASC();
            frm.ShowDialog();
        }

        private void btPhpDesign_Click(object sender, EventArgs e)
        {
            Develop.frmPHPDesign frm = new Develop.frmPHPDesign();
            frm.ShowDialog();
        }

        private void btTopstyle_Click(object sender, EventArgs e)
        {
            Develop.frmTopstyle frm = new Develop.frmTopstyle();
            frm.ShowDialog();
        }
        #endregion

        #region Email

        private void btOutlook_Click(object sender, EventArgs e)
        {
            Email.frmOutlook frm = new Email.frmOutlook();
            frm.ShowDialog();
        }

        private void btThunderbird_Click(object sender, EventArgs e)
        {
            Email.frmThunderbird frm = new Email.frmThunderbird();
            frm.ShowDialog();
        }

        private void btWinrar_Click(object sender, EventArgs e)
        {
            Email.frmWinrar frm = new Email.frmWinrar();
            frm.ShowDialog();
        }

        private void btIDM_Click(object sender, EventArgs e)
        {
            Email.frmIDM frm = new Email.frmIDM();
            frm.ShowDialog();
        }

        private void btMoreEmail_Click(object sender, EventArgs e)
        {
            Email.frmMore frm = new Email.frmMore();
            frm.ShowDialog();
        }

        #endregion

        #region About
        private void btDonation_Click(object sender, EventArgs e)
        {
            MessageBox.Show("If you like this program, you can donation \nme a cup of coffee or 1$ via Paypal \n\nMy Paypal: minhhykehnispace@gmail.com \n\nThank you very much.", "Donation for me");
        }

        private void btUpdate_Click(object sender, EventArgs e)
        {
            AutoUpdater.Start("https://dl.dropboxusercontent.com/u/79154193/Update_mrdat/Backup-Restore/updater.xml");
        }

        private void btWebsite_Click(object sender, EventArgs e)
        {
            Process.Start("http://caiwindao.info");
        }

        private void btHelp_Click(object sender, EventArgs e)
        {
            MessageBox.Show("I'll come back!", "Help");
        }

        private void btAbout_Click(object sender, EventArgs e)
        {
            About.AboutBox1 frm = new About.AboutBox1();
            frm.ShowDialog();
        }
        #endregion

        private void frmMain_Load(object sender, EventArgs e)
        {
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Process.Start("http://caiwindao.info");
        }
       

        #region Ultilite More
        #endregion


    }
}
